/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufscar.compiladores.ast;

/**
 *
 * @author takeshi
 */
public class VariableExpr extends Expr {
    
    private Variable v;
    
    public VariableExpr(Variable v) {
        this.v = v;
    }

    public void genC(PW pw, boolean putParenthesis) {
        pw.out.print(v.getName());
    }

    public Type getType() {
        return v.getType();
    }
}